<?php


	namespace app\home\validate;


	class OrderValidate extends Base
	{


		protected $rule = [
			['address_id', 'require|isInteger', '地址不能为空|地址参数有误'],
			['form', 'require', '来源不能为空'],
			['order_id', 'require|isInteger', '订单id不能为空|id为正整数'],
			['type', 'require', '支付类型须存在'],

		];

		protected $scene = [
			'submit'      => ['address_id', 'form'],
			'getOneOrder' => ['order_id'],
			'pay'         => ['order_id', 'type'],

		];


	}